Joseph Smith did not write the Book of Mormon; he translated it from ancient writings.
“Translated” is a tick of a stretch but if you want to use the term go ahead.
He made it up.