To save the black cat and make him a permanent summon (spell is learned by whoever the black cat first spoke to), all you need to do is escape fort joy. Such is easy, there are 3-4 ways to do so. But if you were to prioritize your escape, any backtracking would result in all fort joy guards, attacking you on sight. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.