dm: add target num_write_bios fn