fixed bug89 and added tests: writeBuffer not flushed until nextTick'
test writeBuffer isn't cleared onError, removed 'closing' check in .flush()
Merge pull request #155 from albertyfwu/bug89

fixed bug89 and added tests: writeBuffer not flushed until nextTick'