The default behaviour for salloc will run any shell related commands on the node where salloc was called from, while any srun commands
salloc
srun