Energy Balance and Time Dependence of a Magnetotail Electron Diffusion Region