create tmpfile on same volume as existing file

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>