HF RL Explorer

Fix byte mode detection on BgzfWriter

Fix byte mode detection on BgzfWriter: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix byte mode detection on BgzfWriter

The task

**Title:** Fix byte mode detection on `BgzfWriter`

Part of scalingX/life-science-SWE1.0.