Added views/thread/write_end.php.
Changed spelling errors in the write() method in models/thread.php.