Allocate p->writechan during getdblock of a potentially-written block, to cut off race between dirtydblock and flush proc.