Check if length memory blocks in buffer starting from idx are writable.
length can be -1 to check all the memory blocks after idx.
Note that this function does not check if buffer is writable, use
Buffer.isWritable to check that if needed.
a length should not be 0
TRUE if the memory range is writable