Complete the insertion of tree