Efficient balanced codes over the mth roots of unity