Add support for writing to subsets of datasets

I had a go at implementing this, mostly copying from your getindex code. It seems to work OK for some preliminary tests.
Document the slicing dataset writing
Merge pull request #16 from jtravs/patch-1

Add support for writing to subsets of datasets