Device-to-Device (D2D) communication is an important complement for the future cellular network, which caters to the requirements of mobile internet applications. This article has studied the D2D communication underlaying the cellular networks, which allows the D2D user sharing uplink resource of cellular system. In order to limit mutual interference between cellular links and local D2D links, a semi-autonomous mode selection procedure is proposed in this paper, intending to maximize the system capacity as well as guaranteeing QoS of cellular users. Previous studies mainly focus on one or two cells, which seems inadequate for further exploiting D2D's potential. This work aims to consider the heterogeneous network of D2D and LTE-Advanced in multi-cell environment, paying close attention to the transmission manner and the spectrum sharing method. The simulation results prove that assisted by the cellular network, the proposed procedure achieves better performance compared with either the local-assisted scheme or the non-assisted one.