It sounds wrong to my Finnish ear. I would simply say: While I was writing, I busied myself with promoting my ideas. If extra emphasis were needed to underline that I busied myself with promoting my ideas the entire time I was writing, I would say: All the time while I was writing, I busied myself with promoting my ideas.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.