And the energy to produce the corn based ethanol is awful close to the energy content of the ethanol itself.
The only biofuel currently available that makes any sense is biodiesel. Current ultra low sulfur diesel has poor top of cylinder lubricity, not good for the engine. Even a 2% biodiesel restores the lubricity, and then some. Higher percentages of biodiesel has gelling problems in cold climates.
Most ethanol plants make more money selling the leftover DDGS than they do from ethanol.