Allegri agrees Roma deal, waits for Milan