The San Siro team has been in disappointing form in the opening months of the 2013-14 campaign and a number of recent reports suggested that Allegri is in danger of losing his job if it fails to beat Chievo at the weekend.
However, Galliani has stressed that Milan is not thinking about firing Allegri and is insistent the 46-year-old will remain in charge for the remainder of the season.
"The intention of the club is to stick with Allegri until the end of the season, even if every coach has to deal with the law of results," Galliani said. "However, there is no Allegri ultimatum. If we lose 22-0 then you would think of a change but I don't like talking about the future.
"I repeat, the match in Verona is important because of the league table but it won't be the last game on earth."
Milan currently sits 11th in the Serie A table.