pawsplay
Hero
In literature, the countering force to this is the Narrative. Warriors defeat wizards because the story demands that they do.
Why does the story demand anything? It's not a person with an agenda of its own. It's not "story" that causes warriors to defeat wizards, it's what happens within that story, events that lead up to the necessary and logical defeat of the wizard. Your premise seems to suggest that without favoritism from the author, it would not happen. Yet in most stories, magic is dangerous, difficult, and often time-consuming. As a baseline assumption, you feel the wizard will outstrip any warrior if unchecked. Many wizards in stories seem to believe this as well, yet time and time again they are proven wrong. There is no reason, inherently, you have to put a series of checks on wizards, any more than you need to write a treatise to stop warriors from dominating wizards.
The relative dominance of magic and melee depends entirely on the basic assumptions with regard to magic. "Unlimited godlike power, without a cost," is not a standard feature of magic, any more than "easily defeats all casters with a quick sword thrust" is a characteristic of all fighters.