Allegri: 'Milan won despite crisis'