Generalized balance equations for anelectron-phonon system