[bluetooth] Writes data in a single write() call