Fixed a bug in BinaryWriter

[git-p4: depot-paths = "//Dynamic_Static_Engine/Dynamic_Static_Engine_main/": change = 56]