Marc Marquez nearly retired after breaking his arm and feels his 7th title was "written in the stars" despite having doubts about a return to the top.