Merged changes from git@sylvainforet.
corrected write error on blastInputs.