Fix for vert-x/mod-lang-rhino#15 AsyncFile.write

In fact there were no explicit tests at all for `AsyncFile` in the
Javascript implementation, so this commit adds tests for those and
addresses the issue with `AsyncFile.write` and the fact that it has two
overloaded `write()` methods, since it's a `WriteStream` as well as a
file.