To write or edit an eBook, you can use free software like Calibre, Sigil, and Magic. Other than that, if you want a cloud-based eBook editor, you can try Gitbook.