It depends on what you want the meaning to be.
If you say "He had written 14 books...," that means that the action (writing 14 books) happened before another action that happened in the past. If you said "He had written 14 books by the end of last January," that would be perfectly acceptable.
That would be the best choice.