rewrote writeBlog.php

rewrote wrtieBlog as a class
now BlogEditor calls itself to add a blog post