Fix misuse of buffer::write
Fix misuse of buffer::write

Change-Id: I8238b36883799dd5c3e125576a7077cc57ec5634
Reviewed-on: http://gerrit.aldebaran.lan:8080/7917
Reviewed-by: cgestes <ddb78fe00abb42f91254c16a0860e38eb0781789@aldebaran-robotics.com>
Tested-by: ncornu <13ba26b8f12d26c819f48749c65f2f7f5c1d13db@aldebaran-robotics.com>

aldebaran/libqi-java,aldebaran/libqi,aldebaran/libqi-java,aldebaran/libqi,aldebaran/libqi-java,vbarbaresi/libqi,aldebaran/libqi,bsautron/libqi