If you were able to do this, I'm assuming your device is rooted. In hopes that you followed the very standard practice of making a backup file of the stock rooted rom. Just boot into recovery and flash the backup file.
If you didn't make a back up, well, hate to say it but start digging through Google search results for the stock firmware for your device.