A ballast controls the electricity flowing (current) into the bulb. HID and flourecent lights are so effective at producing light that, without something to regulate the electricity flowing into the bulb, the light will continue to gain intensity until the bulb stops working. That's where a ballast comes in. It supplies the initial electricity that creates the light, and then it regulates the amount of electricity flowing through the bulb so that the right amount of light is emitted.
Im an apprentice electrician and i basically stole this out of my book.