You are lucky if you are already thinking about writing your first scientific publication based on your Ph.D. work. Writing a publication is one of the most important skills that any researcher must acquire during their Ph.D. period. However, students often ask the question, of whether they should wait for “perfect” results before publishing their first paper.
My advice is to write when your work is mature enough that you can cut it into bite-sized pieces that interest others, and then go ahead and start writing. At the end of the day, writing is a cyclical process, and you can only get better at it by writing. Apart from the personal satisfaction of completing an article and seeing it accepted in a peer-reviewed journal/conference, it gets you excited about the project (it gives you motivation). It also makes it much easier for you to progressively make progress by writing in steps and establishing milestones. In doing so, when you get to the final rewriting stage, it will not feel like a mountain to climb. It should be something that builds naturally upon what has already been done.
So, I personally think that the quicker you start to publish, the quicker you will build up a track record of publications. You can use this track record to get funding or a job at the end of your Ph.D., which is key for your career.