Answer
The source of most of the mass in a large tree trunk is the atmosphere, since the trunk is mostly cellulose and other carbohydrate polymers.
Work Step by Step
Those polymers are made via photosynthesis and following steps, with the initial material coming from atmospheric carbon dioxide.