insertEntry complete

complete the insertEntry function (include split)