BoxFileInputStream: only download up to the file size

Needed so that we don't get a broken pipe.