Statistical mechanics for metabolic networks during steady state growth