stream: fix never close when a last chunk is empty

In the following cases, Stream never finish.

    var ws = fs.createWriteStream('/path/to/file');
    ws.on('finish', function() {});
    ws.write('abcd', 'utf8');
    ws.write('', 'utf8');
    ws.end();