Allegri: 'Van Bommel will learn'