Fixed a bug in QDropboxFile::write(...): the function always returned zero instead of the actual written size.

* This caused only the first write to the file to succeed.
* The buffer was flushed on a wrong condition - not when the threshold was reached but whenever it was *not* reached.

Signed-off-by: lycis <daniel@deder.at>