Ronaldinho is struggling to break back into Allegri's first-choice team.
Allegri said: “Ronaldinho is working. He is doing very well. He also came on with desire on Saturday.
“No one likes being out of the team, but he has to work to get his place back.”