The best way to focus on the task is to avoid distractions. I give my writing full attention by following (as often as possible) these tips.
Guard the work/writing time. Respect it and bring attention to it.
Schedule writing time first. It is an appointment that you keep.
Schedule distracting duties second, but keep those appointments as well, your life has to happen too.
Establish the supporting habits that help.