update tree's num_child field in insert