Sounds like the inheritance is working as intended. Gavelkind is supposed to divide your titles between your children. So if your heir already has a title, then your title will go to the next eligible child. If you have several titles, the titles will be distributed between all eligible children.
Hope that helps.
Hope that helps.