However, Allegri has stated that his side need to become more ruthless in attack if they are turn their dominance into victories in the future.
"We've got to improve, as we cannot dominate a match to this degree only to risk compromising it with moments of naivety," the coach told reporters after the game.
"Clearly we've got to finish off games, instead we risked throwing it away at the end. It would've been tough to swallow a draw this afternoon."
The win moves Milan up to sixth in Serie A.