Added max concurrent count support when writing

Added max concurrent count support when writing, by default, if target
is a simulator, the max concurrent count is NSIntegerMax; if a real
device, it’s 100. Tested in iTouch 4, iOS 6, it’s safe.