glsl: fix bounds check in blob_overwrite_bytes