Balanced codes with parallel encoding/decoding