loopback example create update

I was looking over the loopback example and I noticed that the
create method was not truncating the file.