BinaryIO: Added writeAlign and writePadding
Resdict writing