HTC's solution to this issue is to "Press and hold the Power button for at least 10 seconds, and then release it. HTC One X will be shutdown and then boot again."
This is the only solution I would be able to see. If you require something more, then as a phone modder I would recommend you take apart the phone and manually disconnect the battery. This is rather risky unless you are confident in what you are doing. You may be able to refer to this page: http://htcpedia.com/news/HTC-One-X-How-To-Take-It-Apart.html for a tutorial on how to disassemble the unibody of the HTC one x.
The last safe option you have is to simply wait a day or so (since it is stuck on) until the battery drains completely. From there of course charge it up again and continue with whatever software modding you were doing.