Think about a situation where Alloran had not released the quantum virus on the Hork-Bajir. The Andalites had already lost that planet, so the Hork-Bajir would fall like normal.
However, this time, the Yeerks would have plenty of hosts to go around (based on inferences, probably in the hundreds of thousands to single-digit millions, planet-wide). The whole reason for attacking Earth was because the vast majority of Yeerks were hostless.
With that many battle-ready troops, the Yeerks could mount an assault on the Andalite Home World, and possibly win.
The virus may have been essential to their victory, despite how much everyone denounces it.