Write_Blueflood cleanup

I am sorta iffy on defining the MAX_DATA_TYPES magic number in the middle of a method. I'd normally expect a magic number like that to be defined at the head of the file, or in the headers file. I am not sure how this part should be done, but this doesn't feel terribly idiomatic. We should find out where magic numbers are typically defined in C.

I'm not so sure about setting MAX_OFFSET like this. The primary reason i'm not so enthusiastic about it is MAX_OFFSET was a stopgap solution. By defining a magic number like this, it feels like that's the intended value.

I think the MAX_OFFSET should go back to being a TODO comment.