The number one way to cure a lack of inspiration when writing, is to allow yourself to produce writing that is poor.
That means being okay when you don’t like your own work.
It also means being okay when others don’t like your work either.
We all go through dull, grey, uninspiring periods.
Don’t let that stop you from the act of creating something new.