You are mixing session replication and session storage.
Fot the storage itself it's a mix of your A and B, you wouldn't want your sessions to always be writter/read from the filesystem, so it does it when needed, it is called passivation.
See: http://community.jboss.org/wiki/HttpSessionPassivationDesign