In this paper, a novel spectrum sharing scheme is proposed to improve the achievable traffic load in the cognitive radio networks (CRN) with considering heterogeneous traffic and limited system resource (i.e., the buffer capability in a secondary base station), simultaneously. Specifically, we consider a CRN where unlicensed networks employ network coding for data storage control in a secondary base station. We put up three different data-change scenarios and five kinds of comparison mechanisms in every scenario based on heterogeneous traffic. For performance measures, we derive the blocking probability, the probability of forced termination, throughput and spectrum utilization. Numerical results show that compared to the existing approaches, the proposed scheme can carry out higher stable traffic load and spectrum utilization of unlicensed users.