Allegri: 'Milan deserved to qualify'