added write.sbams
added write.sbams