fixed inconsistent procedure args. checked against q-wiki originals
first draft hf_dc_write