Is it illegal to write Taobao patent?

Not illegal.

If you mean providing technical information, it is legal to ask a patent agent or a patent lawyer to write patent application documents, and this way is much better than writing it yourself. You can find a person or institution with patent agency qualification to write a patent on your behalf. Forging patents is illegal.