I've never had trouble with them running to seed before or at least not until much later in the season. They've been in a good while and there has been somewhere between no and little development on the onion itself.
You may have fertilized them with a high nitrogen mix... which will cause fast flowering... just step on them to break them over and they'll still develop the bulb.