Carbon allocation in forest ecosystems