Corrected FileStream to correctly store written bytes