Here's the story:
https://www.nytimes.com/2014/02/05/world/europe/entrusted-to.... It isn't just The Pope's notes, but notes that predate his inauguration as Pope, and it isn't just about retention, but about publication.
Both retention and publication go against the wishes of the deceased, but I would see putting them in the Vatican Archives for a few researchers to peruse as a lesser transgression than putting them in a book for all to see.
I agree with you that there is probably a legal or moral requirement to retain the notes of Pope John Paul II, and that may override his personal wishes (though, again, in an archive, rather than in all good bookshops).
You are also correct that it may be difficult, or even impossible to separate JP2's notes from Karol Wojtyla's notes after 1978, but what about before? Are the notes of Bishop of Ombi or the Archbishop of Krakow also as important? How far back does the corporate entanglement go?