Windows write disk test

Some bug fix and two sub case added.