fix bug: write on android api level lower 18 with non zero offset writes only garbage