BB: add tasks_per_node in allocate_node, clean, ok