The pronoun is fine. The meanings of other parts vary -
Inspired her to write...this sounds as though the trips created the urge to write
served as inspiration for ...this sounds as though the trips suggested information/settings for her writing.
'to write several mystery novels' - this sounds as though all she wrote was 'a few/several' mystery novels.
'for several of her mystery novels' - the inspiration only applies to some of her mystery novels, and doesn't give any idea of how many she wrote in total.