Allegri clings to Milan contract