Make write command set filename

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>