Implementes write() in Issue

Implemented write() method for Issue and outsourced some functionality
of Tray.overwriteAll() to there.