Don't confuse the Expanded Universe - media sanctioned and licensed by Lucasfilm - with fan fiction. You can write this story, but as long as it's not licensed by Lucasfilm, it's not EU. Publishing an EU work is by no means a simple process, it involves checking for continuity errors with the Holocron database, not to mention that key decisions involving major characters need to be discussed on a high level, sometimes involving Lucas himself if it includes the characters he created (for example, Lucas disallowed killing Luke in NJO, so Chewbacca died instead; also he ordered to kill Anakin Solo instead of Jacen).Of course, the KOTOR era is not as strictly monitored as the post-(pre-, inter-)movie era, as it doesn't involve any movie characters.