Hmmmm, that may be the clue needed. It sounds very much like the wire from the - coil to the ECU is grounded between the coil - and ECU. With this wire shorted, there will be constant coil current that is cannot be turned on and off by the ECU as it needs to do to create each spark, and it would tend to overheat the ballast too. Turning off the ignition will interrupt the coil current and cause the spark you see despite such a ground.