Is academic writing considered illegal?

It all depends on how you approach the question. It can be seen as academic writing help, while others see it as cheating. Do not let legal issues bother you. It is impossible for anyone to obtain sensitive information about your identity or complete order.